home *** CD-ROM | disk | FTP | other *** search
/ CD World Haziran 1997 / CD World Haziran 1997.iso / Programlama ve Gelistirme / DTime / _SETUP.1 / Datentry.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-04  |  731 b   |  49 lines

  1. #include "stdafx.h"
  2. #include "datentry.h"
  3. #include "dateDlg.h"
  4.  
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10.  
  11.  
  12. BEGIN_MESSAGE_MAP(CDatentryApp, CWinApp)
  13.   //{{AFX_MSG_MAP(CDatentryApp)
  14.   //}}AFX_MSG
  15.   ON_COMMAND(ID_HELP, CWinApp::OnHelp)
  16. END_MESSAGE_MAP()
  17.  
  18.  
  19. CDatentryApp::CDatentryApp()
  20. {
  21. }
  22.  
  23.  
  24. //the one and only app
  25. CDatentryApp theApp;
  26.  
  27.  
  28.  
  29. BOOL CDatentryApp::InitInstance()
  30. {
  31.   Enable3dControls();
  32.  
  33.   InitDTime();
  34.  
  35.   //bring up the dialog to demo DTime data entry
  36.   CDatentryDlg dlg;
  37.   m_pMainWnd = &dlg;
  38.   int nResponse = dlg.DoModal();
  39.   
  40.   return FALSE;
  41. }
  42.  
  43. int CDatentryApp::ExitInstance()
  44. {
  45.   return CWinApp::ExitInstance();
  46. }
  47.  
  48.  
  49.